Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple instances to be synced #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakiestfu
Copy link

@jakiestfu jakiestfu commented Nov 4, 2016

Unfortunately, not all tests are passing. Two are failing, and I'm scratching my head a little bit as to why...

@desandro
Copy link
Member

desandro commented Nov 5, 2016

Thank you for this contribution! This could be a nice little feature 😄

Rather than modifying the source, did you try using sync method instead? See demo on CodePen

var flktyA = new Flickity('.carousel-a');
var flktyB = new Flickity('.carousel-b');
var flktyC = new Flickity('.carousel-c');

flktyA.sync('.carousel-b');
flktyA.sync('.carousel-c');

I'll keep this PR open for a bit in case others are interested.

@jakiestfu
Copy link
Author

Interesting point. My team and I will futz around with this and see if it solves our use case. This would obviously be a simpler and more practical solution. Will post updates soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants